<!--
 * @FilePath     : /study_code/layui/15-62.html
 * @Description  : 隐藏多选的图标
 * @Date         : 2025-04-09 15:50:52
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-09 17:07:51
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="" />
  </head>
  <body>
    <div id="demo1" class="xm-select-demo"></div>
    <div id="demo2" class="xm-select-demo"></div>

    <script src="/xm-select/dist/xm-select.js"></script>
    <script>
      var demo1 = xmSelect.render({
        el: '#demo1',
        radio: true,
        clickClose: true,
        model: {
          icon: 'hidden', // 隐藏下拉选图标
          label: {
            type: 'text', // 隐藏选中图标 （文本格式显示，就隐藏了下拉选中的多选/单选图标）
          },
        },
        data: [
          { name: '张三1', value: 1, selected: true },
          { name: '李四1', value: 2 },
          { name: '王五1', value: 3, disabled: true },
          { name: '苹果2', value: 4 },
        ],
      })

      var demo2 = xmSelect.render({
        el: '#demo2',
        radio: true,
        clickClose: true,
        theme: {
          color: '#5FB878',
        },
        model: {
          icon: 'hidden',
          label: {
            type: 'text',
          },
        },
        data: [
          { name: '张三1', value: 1, selected: true },
          { name: '李四1', value: 2 },
          { name: '王五1', value: 3, disabled: true },
          { name: '苹果2', value: 4 },
        ],
      })
    </script>
  </body>
</html>
